<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.pengtu.security.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title>发文管理</title>
</head>
<body>
	<h1>
		待办任务
	</h1>
	<form id="mainForm" action="convey_art.action" method="get"
		class="yform">
		<div id="message">
			<s:actionmessage theme="custom" cssClass="success" />
		</div>
		<div id="filter"></div>
		<div id="content">
			<table id="contentTable">
				<tr>
					<th>发文字号</th>
					<th>发文标题</th>
					<th>公文来源</th>
					<th>拟稿人</th>
					<th>发文部门</th>
					<th>接收部门</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${conveyArtTaskList }" var="convey">
					<tr>
						<td><a href="convey_art!look.action?id=${convey.id }">${convey.num
								}</a>&nbsp;</td>
						<td>${convey.title }&nbsp;</td>
						<td>${convey.source }&nbsp;</td>
						<td>${convey.draft }&nbsp;</td>
						<td>${convey.sentDepartment.depName }&nbsp;</td>
						<td>${convey.takeDepartment.depName }&nbsp;</td>
						<td>&nbsp;<security:authorize ifAnyGranted="ROLE_修改用户">
								<c:if test="${convey.state == '01' }">
									<a
										href="convey_art!submit.action?id=${convey.id }&taskId=${convey.taskId}">提交</a>&nbsp;
								</c:if>
								<c:if test="${convey.state == '02' }">
									<a
										href="convey_art!view.action?id=${convey.id }&taskId=${convey.taskId}">查看</a>&nbsp;
								</c:if>
								<c:if test="${convey.state == '03' }">
									<a
										href="convey_art!proinput.action?id=${convey.id }&taskId=${convey.taskId}">查看</a>&nbsp;
								</c:if>
								<c:if test="${convey.state == '04' }">
									<a
										href="convey_art!leadinput.action?id=${convey.id }&taskId=${convey.taskId}">查看</a>&nbsp;
								</c:if>
								<c:if test="${convey.state == '05' }">
									<a
										href="convey_art!page.action?id=${convey.id }&taskId=${convey.taskId}">查看</a>&nbsp;
								</c:if>
								<c:if test="${convey.state == '06' }">
									<a
										href="convey_art!spectinput.action?id=${convey.id }&taskId=${convey.taskId}">查看</a>&nbsp;
								</c:if>
								<c:if test="${convey.state == '07' }">
									<a
										href="convey_art!archive.action?id=${convey.id }&taskId=${convey.taskId}">查看</a>&nbsp;
								</c:if>
								<c:if test="${convey.state == '08' }">
									<a
										href="convey_art!archinput.action?id=${convey.id }&taskId=${convey.taskId}">查看</a>&nbsp;
								</c:if>
								<c:if test="${convey.state == '00' }">
									<a
										href="convey_art!look.action?id=${convey.id }&taskId=${convey.taskId}">查看</a>&nbsp;
								</c:if>
							</security:authorize> <a href="picture!picture.action?id=${convey.id }">查看流程</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
	</form>
</body>
</html>